package com.stormrage.entity.exam;

import java.io.Serializable;

/**
 * @Title: ExmCourseScore.java
 * @Package com.stormrage.entity.exam
 * @Description: 试题数量及分数 Entity 类
 * @author www.stormragetech.com
 * @date 2016年4月22日
 * @version V1.0
 */
public class ExmRelateCount implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 7574031985497315758L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer termId;

	private Integer relateId;

	private Integer type; // 0 - 课程 1- 模组

	private Integer sele;

	private Integer mult;

	private Integer corr;

	// ------------------------------- Fields -------------------------------

	public ExmRelateCount() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTermId() {
		return termId;
	}

	public void setTermId(Integer termId) {
		this.termId = termId;
	}

	public Integer getRelateId() {
		return relateId;
	}

	public void setRelateId(Integer relateId) {
		this.relateId = relateId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getSele() {
		return sele;
	}

	public void setSele(Integer sele) {
		this.sele = sele;
	}

	public Integer getMult() {
		return mult;
	}

	public void setMult(Integer mult) {
		this.mult = mult;
	}

	public Integer getCorr() {
		return corr;
	}

	public void setCorr(Integer corr) {
		this.corr = corr;
	}

	// ------------------------------- Fields -------------------------------

	public static ExmRelateCount instance(Integer termId, Integer relateId, Integer type) {
		ExmRelateCount entity = new ExmRelateCount();
		entity.setTermId(termId);
		entity.setRelateId(relateId);
		entity.setType(type);
		entity.setSele(0);
		entity.setMult(0);
		entity.setCorr(0);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " termId - " + termId + " relateId - " + relateId + " type - " + type
				+ " sele - " + sele + " mult - " + mult + " corr - " + corr;
	}

}
